package com.lagou.data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataListUtil {

    private static Map<String, List<MethodBeanInfo>> map = new HashMap<>();

    public static void put(String metnodName, MethodBeanInfo info) {
        if (map.get(metnodName) != null) {
            map.get(metnodName).add(info);
        } else {
            ArrayList<MethodBeanInfo> infos = new ArrayList<>();
            infos.add(info);
            map.put(metnodName, infos);
        }
    }

    public static Map<String, List<MethodBeanInfo>> get() {
        return map;
    }
}
